//
//  AppMacro.swift
//  FoundationsAppCode
//
//  Created by Erickson on 16/3/18.
//  Copyright © 2016年 paiyipai. All rights reserved.
//

import UIKit


struct AppConstant {
    
    /// 屏宽
    static let screenWidth:CGFloat = UIScreen.main.bounds.width
    /// 屏高
    static let screenHeight:CGFloat = UIScreen.main.bounds.height
    /// 设备标识
    static let did = UUID().uuidString
    
    /// 系统版本
    static let systemVersion = Float(UIDevice.current.systemVersion)!
    /// 当前版本号
    static let appVersion = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String
    /// 内部版本号
    static let appBuildVersion = Bundle.main.infoDictionary!["CFBundleVersion"] as! String

     /// 应用名
    static let appName = Bundle.main.infoDictionary!["CFBundleName"] as! String
    
    /// iTunesURL
    static let iTunesURL = "itms-apps://itunes.apple.com/app/"

    /// Documents路径
    static let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
    /// Library/Caches 路径
    static let cachePath = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).last!
   
    
}
